package org.pearl.oauth2.authorizationserverdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.pearl.oauth2.authorizationserverdemo.entity.User;
import org.pearl.oauth2.authorizationserverdemo.pojo.UserInfoDO;


/**
 * <p>
 * 服务类
 * </p>
 *
 * @author td
 * @since 2021-07-02
 */
public interface UserService extends IService<User> {

    /**
     * 根据用户名查询账户信息
     *
     * @param username 用户名
     * @return User
     */
    User getUserByName(String username);

    UserInfoDO getUserInfoByName(String username);

}
